﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <script src="../jquery-1.7.2.min.js"></script>
    <script src="../eiap-all.js"></script>
    <title>构造Combox数据</title>
    <script type="text/javascript">
        EIAP.onReady(function () {
            var dataList = [{ item: 1 }, { item: 2 }];
            EIAP.ComboBox({
                renderTo: "combobox1",
                title: "行号",
                labelWidth: 100,
                name: 'item',
                beforeSelect:function(){
                    console.log(arguments);
                },
                afterSelect:function(data){
                    console.log(data.data.item);
                },
               // field: ['value'],
                data: dataList
            });
            EIAP.Button({
                renderTo: "numberfield1",
                title: "行号",
                labelWidth: 100,
                name: 'item',
                afterSelect:function() {
                    dataList = [{ item: 1 }, { item: 2 }, { item: 3 }, { item: 4 }];
                }
            });

        });
    </script>
</head>
<body>
    <div id="combobox1"></div>
    <div id="numberfield1"></div>
</body>
</html>